home *** CD-ROM | disk | FTP | other *** search
/ PC Advisor 2006 April / PC Advisor 2006 April.iso / Features / USB / mkbt20 / mkbt.txt < prev    next >
Encoding:
Text File  |  2003-01-07  |  6.7 KB  |  194 lines

  1. MKBT, Make Bootable
  2.  
  3.    Create  any  boot- floppy/image from any win32 platform with any media
  4.    size...
  5.  
  6.    Version 2.0
  7.  
  8.    Last updated on Jan 7, 2003
  9.    - What is MKBT? [#what]
  10.    - Download [#download]
  11.    - On what platforms can MKBT be run? [#platforms]
  12.    - What is the command line syntax? [#syntax]
  13.    - What is so unique about MKBT? [#aboutmkbt]
  14.    - Are there any other bootsector installers? [#others]
  15.    - Where can I find the latest version? [#latestversion]
  16.    - How to build a bootable floppy [#build]
  17.    - How to build a bootable 2.88MB floppy image file (without the
  18.    drive) [#build288]
  19.    - How does MKBT work? (technical) [#howitworks]
  20.    - Bootsector installation [#install]
  21.    - Bootsector copy (-c) [#copy]
  22.    - Change log [#changes]
  23.    
  24. > What is MKBT?
  25.  
  26.    [#what]
  27.    MKBT  is  used  for  installing  bootsectors.  It  supports  FAT, NTFS
  28.    [/fixnt4/] and RAW bootsectors.
  29.    
  30. > Download
  31.  
  32.    [#download]
  33.    To download MKBT use this link: MKBT v2.0
  34.    
  35. > On what platforms can MKBT be run?
  36.  
  37.    [#platforms]
  38.    MKBT is compiled as a win32 executable and runs on:
  39.      * Windows 95/98/ME (FAT)
  40.      * Windows NT4/2000/XP (FAT and NTFS)
  41.  
  42. > What is the command line syntax?
  43.  
  44.    [#syntax]
  45.                                    MKBT usage
  46.  
  47.  Usage:
  48.    mkbt [switches] <source> <target>
  49.  
  50.    <source>  The source file/drive which contains the bootsector to install
  51.    <target>  The target file/drive to install the bootsector on
  52.  
  53.    Switches: -v        Verbose mode
  54.              -c        Copy mode (no install) used for copying the
  55.                        bootsector(s)
  56.              -x        Expert mode (do not check drive A or B only)
  57.                        USE WITH CAUTION!
  58.              -l=<xxx>  Set Volume Label to <xxx>
  59.  
  60.    Returns errorlevel 0 when OK, 1 when some error occurred.
  61.  
  62.    Examples:
  63.      To install bootsector from file "bootsect.bin" onto drive A:
  64.      -> mkbt c:\os\dos622\bootsect.bin a:
  65.  
  66.      To install bootsector from file "bootsect.bin" onto floppy image "288.img"
  67.      -> mkbt c:\os\dos622\bootsect.bin c:\tmp\288.img
  68.  
  69.      To copy bootsector from a bootable floppy in drive A: to a file called
  70.      "bootsect.bin"
  71.      -> mkbt -c a: c:\os\dos622\bootsect.bin
  72.  
  73. > What is so unique about MKBT?
  74.  
  75.    [#aboutmkbt]
  76.    Unique things about MKBT are:
  77.      * It  supports  transferring  a  bootsector  to  floppy images. This
  78.        allows  you  to  create  a  bootable  2.88MB  floppy image without
  79.        needing  a 2.88MB floppy drive. See How to build a bootable floppy
  80.        image file [#buildimage]
  81.      * It is a win32 executable (not Dos)
  82.  
  83. > Are there any other bootsector installers?
  84.  
  85.    [#others]
  86.    Yes,   I've  found  one  other  bootsector  installer,  "bootable.exe"
  87.    [http://alexfru.chat.ru/programming/bootprog.zip]written  by Alexei A.
  88.    Frounze  [http://alexfru.chat.ru/eindex.html].  It is a Dos executable
  89.    and  only supports transferring a bootsector from file to floppy drive
  90.    (A: or B:).
  91.    
  92. > Where can I find the latest version?
  93.  
  94.    [#latestversion]
  95.    The latest version can be found on http://www.nu2.nu/mkbt/
  96.    
  97. > How to build a bootable floppy
  98.  
  99.    [#build]
  100.    You  can  use  any  Dos version, any Dos supported floppy disk size to
  101.    build  your  bootable  floppy.  For each Dos version you must have the
  102.    following 4 boot files:
  103.      * The bootsector in a file called "bootsect.bin"
  104.        You  can  capture  the  bootsector  to  a  file  using: mkbt -c a:
  105.        bootsect.bin
  106.      * IO.SYS (or IBMBIO.COM for Novell Dos)
  107.      * MSDOS.SYS (or IBMDOS.COM for Novell Dos)
  108.      * COMMAND.COM
  109.  
  110.    For  this  example  we  will  use  MS-Windows  98 (version 4.10.1998),
  111.    therefor we put the files in a folder called "4101998". They must have
  112.    "normal" attributes (not hidden/system/readonly!).
  113.    You  can now use makeboot.bat (which is include with the MKBT download
  114.    zipfile).
  115.    makeboot.bat  takes one parameter, that is the directory where the Dos
  116.    bootfiles can be found.
  117.    Example: makeboot c:\os\4101998
  118.    or when your in the "c:\os" folder, just makeboot 4101998
  119.    
  120. > How to build a bootable 2.88MB floppy image file (without the drive)
  121.  
  122.    [#build288]
  123.    Use bfi - Build Floppy Image [/bfi/]. 
  124.  
  125. > How does MKBT work? (technical)
  126.  
  127.    [#howitworks]
  128.    MKBT  copies  parts  of the bootsector. The bootsector, the very first
  129.    sector of a floppy disk, is 512 bytes long and looks like this:
  130.                   FAT Boot sector
  131.    Offset  Length              Meaning
  132.    0x0    3 bytes   Jump instruction
  133.    0x3    8 bytes   OEM Name
  134.    0xB    25 bytes  BIOS parameter block
  135.    0x24   26 bytes  Extended BIOS parameter block
  136.    0x3E   448 bytes Bootstrap code
  137.    0x1FE  2 bytes   End of sector marker
  138.    The  BIOS  parameter  block and extended BIOS parameter block contains
  139.    the information:
  140.     BIOS parameter block for FAT volumes
  141.    Offset Length          Meaning
  142.    0xB    2 bytes Bytes per sector
  143.    0xD    1 byte  Sectors per cluster
  144.    0x0E   2 bytes Reserved sectors
  145.    0x10   1 byte  Number of FATs
  146.    0x11   2 bytes Root entries
  147.    0x13   2 bytes Small sectors
  148.    0x15   1 byte  Media type
  149.    0x16   2 bytes Sectors per FAT
  150.    0x18   2 bytes Sectors per track
  151.    0x1A   2 bytes Number of heads
  152.    0x1C   4 bytes Hidden sectors
  153.    0x20   4 bytes Large sectors
  154.     Extended BIOS parameter block for FAT volumes
  155.    Offset  Length              Meaning
  156.    0x24   1 byte   Physical disk number
  157.    0x25   1 byte   Dos: Current head
  158.                    NT: Dirty flag
  159.    0x26   1 byte   Signature
  160.    0x27   4 bytes  Volume serial number
  161.    0x2B   11 bytes Volume label
  162.    0x36   8 bytes  Filesystem ID
  163.    
  164. > Bootsector installation
  165.  
  166.    [#install]
  167.    Below are the steps MKBT takes to install a bootsector:
  168.    Steps for bootsector installation
  169.    Step Source sector Buffer 1 Buffer 2 Target sector
  170.    1. Read source sector in buffer 1
  171.    2. Read target sector in buffer 2
  172.    3. Transfer bootsector parts from buffer 1 to buffer 2
  173.    4. Write buffer 2 to target sector
  174.    
  175. > Bootsector copy (-c)
  176.  
  177.    [#copy]
  178.    MKBT  v1.3  (and  higher)  copy  bootsector option copies the complete
  179.    bootsector!
  180.    (previous  versions  only  copied  those sections that where needed to
  181.    install it)
  182.    
  183. > Change log
  184.  
  185.    [#changes]
  186.    Change log for MKBT [changes.txt]
  187.    _________________________________________________________________
  188.  
  189.    Do  you  want to use information from this site elsewhere? That is OK,
  190.    but please read our disclaimer: http://www.nu2.nu/disclaimer/
  191.    Our license agreement can be found here: http://www.nu2.nu/license/
  192.    To contact the author look here: http://www.nu2.nu/contact/bart/
  193.    Copyright (c) 2000-2003 by Bart Lagerweij. All rights reserved.
  194.